#include "Player.h"
#include "Piece.h"
#include "CardSet.h"

using namespace Players;

Player::Player(sf::Unicode::Text name, BoardItems::PlayerPiece* piece, PLAYER_TYPE type)
	: name(name), piece(piece), cards(Cards::CardSet()), is_inactive(false), type(type)
{
}

Player::Player(sf::Unicode::Text name, BoardItems::PlayerPiece* piece, PLAYER_TYPE type, Cards::CardSet cards)
	: name(name), piece(piece), cards(cards), is_inactive(false), type(type)
{
}

sf::Unicode::Text Player::getName()
{
	return name;
}

Cards::CardSet& Player::getCards()
{
	return cards;
}

void Player::setInactive()
{
	is_inactive = true;
}

bool Player::isActive()
{
	return !is_inactive;
}

PLAYER_TYPE Player::getPlayerType()
{
	return type;
}
